<!DOCTYPE html>
<html lang="en">
<!-- Mirrored from www.zi-han.net/theme/hplus/login_v2.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:49 GMT -->
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

    <title>H+ 后台主题UI框架 - 登录</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">
    <link href="__ADMIN__css/bootstrap.min.css" rel="stylesheet">
    <link href="__ADMIN__css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="__ADMIN__css/animate.min.css" rel="stylesheet">
    <link href="__ADMIN__css/style.min.css" rel="stylesheet">
    <link href="__ADMIN__css/login.min.css" rel="stylesheet">
    <link href="__ADMIN__js/plugins/layer/skin/layer.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <script>
        if(window.top!==window.self){window.top.location=window.location};
    </script>
    <style>
        .layui-layer-padding{
            color:#000000;
        }
    </style>

</head>

<body class="signin">
    <div class="signinpanel">
        <div class="row">
            <div class="col-sm-7">
                <div class="signin-info">
                    <div class="logopanel m-b">
                        <h1>[ 冰人先生 ]</h1>
                    </div>
                    <div class="m-b"></div>
                    <h4>欢迎登录 <strong>冰人先生 后台管理系统</strong></h4>
                </div>
            </div>
            <div class="col-sm-5">
                <form id="dologin" method="post" action="{:U('Login/dologin')}">
                    <h4 class="no-margins">登录：</h4>
                    <p class="m-t-md">登录到冰人先生后台管理系统</p>
                    <input type="text" class="form-control uname" name="username" placeholder="用户名" />
                    <input type="password" class="form-control pword m-b" name="password" placeholder="密码" />
                    <a href="#">忘记密码了？</a>
                    <button class="btn btn-success btn-block">登录</button>
                </form>
            </div>
        </div>
        <div class="signup-footer">
            <div class="pull-left">
                &copy; 2015 All Rights Reserved. 冰人先生
            </div>
        </div>
    </div>
</body>
<script src="__ADMIN__js/jquery.min.js"></script>
<script src="__ADMIN__js/plugins/layer/layer.min.js"></script>
<script src="__ADMIN__js/jquery.form.js"></script>
<script>
    $(document).ready(function(){
        $('#dologin').ajaxForm({
            beforeSubmit: check,
            success:complete,
            dataType:'json',
        });
    });
    function check(){
        if($(":text").val() == ''){
            layer.msg('用户名不能为空!', {icon: 5,time: 1000});
            return false;
        }
        $pwd = $(":password").val();
        if($pwd == ''){
            layer.msg('密码不能为空!', {icon: 5,time: 1000});
            return false;
        }
        if($pwd.length < 6 || $pwd.length > 16 ){
            layer.msg('密码长度不合法!', {icon: 5,time: 1000});
            layer.tips('密码长度为6到16', ':password');
            return false;
        }

    }
    function complete(data){
        if(data.status > 0){
            layer.msg(data.msg, {icon: 5,time: 1000});
        }else{
            $('button').removeClass().addClass('btn btn-primary btn-block').attr("disabled",true).html('登录中...');
            layer.msg(data.msg, {icon: 6,time: 3000}, function(){
                window.location.href="{:U('index/index')}";
            });
        }

    }
</script>

<!-- Mirrored from www.zi-han.net/theme/hplus/login_v2.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:52 GMT -->
</html>
